package com.stars.common.enums;

import lombok.Getter;

/**
 * 角色类型
 * role_type
 */
public enum RoleTypeEnum {
    ROOT_ROLE(0, "超级管理员"),
    SYSTEM_ROLE(1, "系统管理"),
    COMMON_ROLE(2, "普通用户");
    @Getter
    private final Integer value;
    @Getter
    private final String desc;

    RoleTypeEnum(final Integer value, final String desc) {
        this.value = value;
        this.desc = desc;
    }
    public String getEnumName() {
        return name();
    }
}
